/*
 * bullet.cpp
 *
 *  Created on: 24 jan 2010
 *      Author: Fidd
 */

#include "Bullet.h"

BulletType Bullet::bulletTypes[2];

void Bullet::declareBulletTypes(){
	bulletTypes[0].speed = 30;
	bulletTypes[0].power = 10;
	bulletTypes[0].image = "img/space/bullet.png";
}

Bullet::Bullet(int type, float angle,float dx,float dy, bool addSpeed)
: Sprite() {
	this->dx=dx;
	this->dy=dy;
	this->type = type;
	this->angle = angle;
	loadImage(bulletTypes[type].image);

	if (addSpeed) {
		updateSpeed(0,bulletTypes[type].speed);
	}

}

Bullet::~Bullet() {
	// TODO Auto-generated destructor stub
}
